 <?php if( ! defined('BASEPATH') ) exit('No direct script access allowed');?>
<div class="container container-info">
    <div class="row div-header">
        <h1 class="col-md-12 h1-text">
            Cupon
            <small>Control de becas ó cupones para: <?php echo $info_enc->nombre_cupones_enc ?></small>
        </h1>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">Alta de Cupones</h3>
        </div>
        <?php
            echo form_open('', array('name' => 'form', 'id' => 'form','cookie' => config_item('csrf_cookie_name')));
        ?>
        <div class="panel-body">
            <div class="row">
                <div class="col-md-6 form-inline">
                    <input type="hidden" name="id_cupon_enc" id="id_cupon_enc" value="<?php echo $id_enc;?>" readonly="readonly">
                    <input type="radio" name="tipo" id="unitario" value="unitario" checked="checked"/>
                    <input class="form-control" type="text" name="codigo" id="codigo" placeholder="Codigo Aleatorio" value="" />
                    <button class="btn btn-default btn-sm" id="aleatorio">Aleatorio</button>
                </div>
                
                <div class="col-md-6 form-inline">
                    <input type="radio" name="tipo" id="serie" value="serie"/>
                    <input class="form-control" type="number" name="codigos" id="codigos" placeholder="Cantidad de Codigos" value=""/>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-inline">
                    <label class="control-label" for="registros" >Entradas</label>
                    <input class="form-control" type="number" name="registros" id="registros" placeholder="Repeticiones" value="1" />
                </div>
                <div class="col-md-6 form-inline">
                    <label class="control-label" for="precio" >Precio</label>
                    <input class="form-control" type="number" name="precio" id="precio" placeholder="Precio" value="0" />
                </div>
            </div>
            <div class="row">
                <div class="col-md-6 form-inline">
                    <button class="form-control btn btn-default btn-sm" id="generar" >Generar</button>
                </div>
                <?php
                /*
                 * generar un boton para que los valores se copien al portabapeles
                <div class="col-md-6 form-inline">
                    <a class="form-control btn btn-default btn-sm" href="<?php echo site_url('administracion/cupon_listado/'.$id_enc) ?>" >Listado </a>
                </div>
                 
                 */
                ?>
            </div>
        </div>
        </form>
    </div>
    <div class="row">
        <div class="col-md-12" id="tabla">
            <table class="table table-striped">
            <thead>
                <tr>
                    <th width="40px">#</th>
                    <th width="120px">Cupon</th>
                    <th width="120px">Precio</th>
                    <th width="60px">Cupo</th>
                    <th width="60px">Usados</th>
                    <th width="80px">Acción</th>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>	
        </div>
    </div>
</div>
    
<?php

/* End of file cupones.php */

/* Location: /application/views/administracion/cupon.php */ 